package com.gift.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;


/**
 * 用户表
 */
public class UserTable {
    /**
     * 用户id
     */
    private Integer uid;
    /**
     * 登陆账号
     */
    private String loginname;
    /**
     * 登陆密码
     */
    private String password;
    /**
     * 真是姓名
     */
    private String relname;
    /**
     *email
     */
    private String email;
    /**
     * 是否启用
     */
    private Integer isuse;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createtime;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime modifytime;

    public UserTable(Integer uid, String loginname, String password, String relname, String email, Integer isuse, LocalDateTime createtime, LocalDateTime modifytime) {
        this.uid = uid;
        this.loginname = loginname;
        this.password = password;
        this.relname = relname;
        this.email = email;
        this.isuse = isuse;
        this.createtime = createtime;
        this.modifytime = modifytime;
    }

    public UserTable() {
        super();
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname == null ? null : loginname.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getRelname() {
        return relname;
    }

    public void setRelname(String relname) {
        this.relname = relname == null ? null : relname.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Integer getIsuse() {
        return isuse;
    }

    public void setIsuse(Integer isuse) {
        this.isuse = isuse;
    }

    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }

    public LocalDateTime getModifytime() {
        return modifytime;
    }

    public void setModifytime(LocalDateTime modifytime) {
        this.modifytime = modifytime;
    }
}